package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;

@ApiModel
public class LoginByPhoneDTO {

    @NotBlank(message = "手机号不得为空！！")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @NotBlank(message = "验证码不得为空！！")
    @ApiModelProperty(value = "验证码")
    private String captchaCode;

    @ApiModelProperty(value = "用户小程序的openId,在小程序端登录的时候传到后台")
    private String openId;

    public LoginByPhoneDTO() {
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCaptchaCode() {
        return captchaCode;
    }

    public void setCaptchaCode(String captchaCode) {
        this.captchaCode = captchaCode;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
